/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package it.apuliait.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author Donatello
 * @generated
 */
public class DocumentoXmlSoap implements Serializable {
	public static DocumentoXmlSoap toSoapModel(DocumentoXml model) {
		DocumentoXmlSoap soapModel = new DocumentoXmlSoap();

		soapModel.setDocumentoXmlId(model.getDocumentoXmlId());
		soapModel.setDocumentoIDFK(model.getDocumentoIDFK());
		soapModel.setAnnoCreazione(model.getAnnoCreazione());
		soapModel.setDocumentoXml(model.getDocumentoXml());

		return soapModel;
	}

	public static DocumentoXmlSoap[] toSoapModels(DocumentoXml[] models) {
		DocumentoXmlSoap[] soapModels = new DocumentoXmlSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static DocumentoXmlSoap[][] toSoapModels(DocumentoXml[][] models) {
		DocumentoXmlSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new DocumentoXmlSoap[models.length][models[0].length];
		}
		else {
			soapModels = new DocumentoXmlSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static DocumentoXmlSoap[] toSoapModels(List<DocumentoXml> models) {
		List<DocumentoXmlSoap> soapModels = new ArrayList<DocumentoXmlSoap>(models.size());

		for (DocumentoXml model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new DocumentoXmlSoap[soapModels.size()]);
	}

	public DocumentoXmlSoap() {
	}

	public long getPrimaryKey() {
		return _documentoXmlId;
	}

	public void setPrimaryKey(long pk) {
		setDocumentoXmlId(pk);
	}

	public long getDocumentoXmlId() {
		return _documentoXmlId;
	}

	public void setDocumentoXmlId(long documentoXmlId) {
		_documentoXmlId = documentoXmlId;
	}

	public long getDocumentoIDFK() {
		return _documentoIDFK;
	}

	public void setDocumentoIDFK(long documentoIDFK) {
		_documentoIDFK = documentoIDFK;
	}

	public String getAnnoCreazione() {
		return _annoCreazione;
	}

	public void setAnnoCreazione(String annoCreazione) {
		_annoCreazione = annoCreazione;
	}

	public String getDocumentoXml() {
		return _documentoXml;
	}

	public void setDocumentoXml(String documentoXml) {
		_documentoXml = documentoXml;
	}

	private long _documentoXmlId;
	private long _documentoIDFK;
	private String _annoCreazione;
	private String _documentoXml;
}